package com.yanqu.road.logic.bussiness.recharge;

import com.yanqu.road.entity.recharge.GoldTokenOrder;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;

public class GoldTokenBussiness {
    public static List<GoldTokenOrder> getGoldTokenOrderList(long userId) {
        return DaoHelper.getPlatformGoldTokenOrderDaoImpl().getGoldTokenOrderList(userId);
    }

    public static GoldTokenOrder getGoldTokenOrder(String orderNo) {
        return DaoHelper.getPlatformGoldTokenOrderDaoImpl().getGoldTokenOrder(orderNo);
    }

    public static boolean addGoldTokenOrder(String orderNo, long userId, long money, long time) {
        return DaoHelper.getPlatformGoldTokenOrderDaoImpl().addGoldTokenOrder(orderNo, userId, money, time);
    }

    public static boolean checkGoldTokenOrder(String orderNo) {
        return DaoHelper.getPlatformGoldTokenOrderDaoImpl().checkGoldTokenOrder(orderNo);
    }

    public static boolean updateOrderStatus(GoldTokenOrder goldTokenOrder) {
        return DaoHelper.getPlatformGoldTokenOrderDaoImpl().updateOrderStatus(goldTokenOrder);
    }
}
